package com.pfzy.utildemo.api;

import com.pfzy.lib.config.evn.EnvConfig;
import com.pfzy.lib.net.RxRetrofitClient;

public class ApiBuilder {
    private Api mApi;

    public static ApiBuilder getInstance() {
        return ApiBuilderHolder.INSTANCE;
    }
    private static class ApiBuilderHolder {
        private static final ApiBuilder INSTANCE = new ApiBuilder();
    }

    ApiBuilder(){
        mApi = RxRetrofitClient.getInstance().getHttpInterface(EnvConfig.getBaseUrl(), Api.class);
    }

    public Api getmAPI() {
        return mApi;
    }
}
